package cn.ultrarisk.scadmin.plugin.handler;

import cn.ultrarisk.scadmin.plugin.processor.UpdateProcessor;
import org.apache.solr.core.SolrCore;
import org.apache.solr.update.CommitUpdateCommand;
import org.apache.solr.update.DirectUpdateHandler2;
import org.apache.solr.update.RollbackUpdateCommand;

import java.io.IOException;

/**
 * UltraUpdateHandler
 *
 * @author sevendlong(lin23871@163.com)
 * @date 2014/10/21
 * @since V1.0
 */
public class SCAUpdateHandler extends DirectUpdateHandler2 {
    private UpdateProcessor updateProcessor = new UpdateProcessor();

    public SCAUpdateHandler(SolrCore core) {
        super(core);
    }

    public SCAUpdateHandler(SolrCore core, org.apache.solr.update.UpdateHandler updateHandler) {
        super(core, updateHandler);
    }

    @Override
    public void commit(CommitUpdateCommand cmd) throws IOException {
        super.commit(cmd);
    }

    @Override
    public void rollback(RollbackUpdateCommand cmd) throws IOException {
        super.rollback(cmd);
    }
}
